package cn.rtangyy.seckilling.dao;

import cn.rtangyy.seckilling.entity.SeckillGoods;

public interface SeckillGoodsDao {
    SeckillGoods querySecKillGoodsByGoodsId(Long goodId);

    /**
     * 更新库存数量
     * @param seckillGoods
     */
    void updateById(SeckillGoods seckillGoods);

    /**
     * 当库存为正时更新库存
     * @param seckillGoods
     */
    boolean updateByIdPositiveStock(SeckillGoods seckillGoods);
}